cmake_minimum_required(VERSION 2.8.5)
project(cli)

set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_C_COMPILER "arm-rockchip830-linux-uclibcgnueabihf-gcc")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -Wall -ggdb")

set(AGCLI_SRC 
    cli.c
    main.c
    )

link_directories(lib)

add_executable(cli)
target_sources(cli PRIVATE ${AGCLI_SRC})
target_include_directories(cli PRIVATE include)
target_link_libraries(cli linenoise cjson)
